package main

import "fmt"

type talk interface {
	Hello() (resp string)
}

type myTalk string

func (hua *myTalk) Hello () (resp string)  {
	resp = "你好"
	return
}

func main() {
	var hua myTalk = "hello"
	//非指针数据类型也可以调用其指针类型的方法，因为go可以在内部进行转换
	aa := hua.Hello()
	fmt.Println(aa)
}
